  

	***********************************************************************************
	**																				 **
	**																				 **
	**		NAME:		ALLISON CARNEGIE & NIKHAR GAIKWAD 							 **
	**		DATE: 		January 7, 2022 											 **
	**		PROJECT: 	Public Opinion on Geopolitics and Trade: Theory and Evidence **
	**																				 **
	**		DETAILS: 	This file is written to be run to conduct the analysis 		 **
	**					of the US survey data 										 **
	**					Data drawn from file: US_SurveyData_insheet.csv				 **
	**					Stata version 14.2											 **
	**																				 **
	***********************************************************************************


set more off

cd ".../ReplicationArchive/Dataverse"
* Replace with file pathway to replication files on one's own computer

insheet using "Data/US_SurveyData_insheet.csv", clear


****************************************
* Conduct Vignette Experiment Analysis *
****************************************

*******************
* Main Manuscript *
*******************

***********
* Table 2 *
***********

* Row a "Ally vs. Adversary"

ttest support_trade, by(adversary_treat)

* Row b "Will Not vs. Will Help Partner’s Military"

ttest support_trade, by(military_treat)

* Row c "Will Not vs. Will Foster Peace"

ttest support_trade, by(peace_treat)

* Row d "Is Not vs. Is Democracy"

ttest support_trade, by(democracy_treat)

* Row e "Will Not vs. Will Help Partner’s Military if Adversary"

ttest support_trade if adversary_treat==1, by(military_treat)

* Row f "Will Not vs. Will Help Partner’s Military if Ally"

ttest support_trade if adversary_treat==0, by(military_treat)

* Row g "Will Not vs. Will Foster Peace if Adversary"

ttest support_trade if adversary_treat==1, by(peace_treat)

* Row h "Will Not vs. Will Foster Peace if Ally"

ttest support_trade if adversary_treat==0, by(peace_treat)

* Row i "Is Not vs. Is Democracy if Adversary"

ttest support_trade if adversary_treat==1, by(democracy_treat)

* Row j "Is Not vs. Is Democracy if Ally"

ttest support_trade if adversary_treat==0, by(democracy_treat)


************
* Figure 1 *
************

graph bar (mean) support_trade, ///
over(adversary_treat, relabel(1 "Ally" 2 "Adversary")) ///
bar(1, fcolor(gray) lcolor(none)) ///
ytitle("Mean Support for Trade") ///
ylabel(0(.2).6, nogrid noticks) ///
blabel(bar, format(%4.3f)) ///
graphregion(color(white)) bgcolor(white) scheme(s2mono) ///
title("{bf:Support for Trade by Partner's Geopolitical Status: US Sample}", size(4) color(black) span) ///
note("Difference = 0.189 (p = 0.000).  Difference and p-value are based on a two-sided t-test.  N=1,208.")
graph export "Output/Figure1.pdf", replace


************
* Figure 2 *
************

graph bar (mean) support_trade, over(military_treat, ///
relabel(1 "Not Help" 2 "Help Military")) ///
bar(1, fcolor(gray) lcolor(none)) ///
ytitle("Mean Support for Trade") ///
ylabel(0(.2).6, nogrid noticks) ///
blabel(bar, format(%4.3f)) ///
graphregion(color(white)) bgcolor(white) scheme(s2mono) ///
note("   Difference = 0.109 (p = 0.000)", justification(center) ) ///
name(figure1b,replace) 

graph bar (mean) support_trade, over(peace_treat, ///
relabel(1 "Not Foster" 2 "Foster Peace")) ///
bar(1, fcolor(gray) lcolor(none)) ///
ylabel(0(.2).6, nogrid noticks) ///
blabel(bar, format(%4.3f)) ///
graphregion(color(white)) bgcolor(white) scheme(s2mono) ///
note("   Difference = -0.313 (p = 0.000)", justification(center)) ///
name(figure1c,replace)  yscale(off fill)

graph bar (mean) support_trade, over(democracy_treat, ///
relabel(1 "Is Not" 2 "Is Democracy")) ///
bar(1, fcolor(gray) lcolor(none)) ///
ylabel(0(.2).6, nogrid noticks) ///
blabel(bar, format(%4.3f)) ///
graphregion(color(white)) bgcolor(white) scheme(s2mono) ///
note("  Difference = -0.078 (p = 0.007)", justification(center)) ///
name(figure1d,replace) yscale(off fill)

graph combine figure1b figure1c figure1d, ///
ycommon cols(3)  ///
graphregion(color(white)) scheme(s2mono) ///
title("{bf:Support for Trade by Randomized Attributes: US Sample}", size(4) color(black) span) ///
note("     Differences and p-values are based on two-sided t-tests.  N=1,208.", justification(center))

graph export "Output/Figure2.pdf", replace


******************************************
* Illustrative Exercise Reported in Text *
******************************************

ttest support_trade, by(adversary_treat)

ttest support_trade if military_treat==1, by(adversary_treat)

ttest support_trade if military_treat==1 & peace_treat==1, by(adversary_treat)

ttest support_trade if military_treat==0 & peace_treat==1, by(adversary_treat)


*****************************************
* Survey Re-weighting Reported in Fn 34 *
*****************************************

eststo: estpost sum female age white black asian hispanic 

ebalance female age white black asian hispanic, manualtargets(.492 36.8 .724 .126 .048 0.091)

svyset [pweight = _webal]
svy: reg support_trade adversary_treat
svy: reg support_trade adversary_treat gender age educ religion race income

svy: reg support_trade military_treat
svy: reg support_trade military_treat gender age educ religion race income

svy: reg support_trade peace_treat
svy: reg support_trade peace_treat gender age educ religion race income

reg support_trade democracy_treat, robust
svy: reg support_trade democracy_treat gender age educ religion race income


**************************
* Supplementary Appendix *
**************************

***************************************
* Appendix C: Covariate Balance Tests *
***************************************

* Adversary Treatment 

ttest age, by(adversary_treat) une
ttest educ, by(adversary_treat) une
ttest religion, by(adversary_treat) une
ttest race, by(adversary_treat) une
ttest income, by(adversary_treat) une

* Military Treatment 

ttest age, by(military_treat) une
ttest educ, by(military_treat) une
ttest religion, by(military_treat) une
ttest race, by(military_treat) une
ttest income, by(military_treat) une

* Peace Treatment 

ttest age, by(peace_treat) une
ttest educ, by(peace_treat) une
ttest religion, by(peace_treat) une
ttest race, by(peace_treat) une
ttest income, by(peace_treat) une

* Democracy Treatment

ttest age, by(democracy_treat) une
ttest educ, by(democracy_treat) une
ttest religion, by(democracy_treat) une
ttest race, by(democracy_treat) une
ttest income, by(democracy_treat) une

* Randomization checks with F-tests for the joint significance of all covariates in explaining treatment assignment
reg adversary_treat age educ religion race income, robust
reg military_treat age educ religion race income, robust
reg peace_treat age educ religion race income, robust
reg democracy_treat age educ religion race income, robust


**********************************************************
* Appendix D: Table 1 Effect of Ally/Adversary Treatment *
**********************************************************

* Column 1 (Binary outcome, no controls)

reg support_trade adversary_treat, robust

* Column 2 (Binary outcome, with controls)

reg support_trade adversary_treat gender age educ religion race income, robust

* Column 3 (Ordered outcome, no controls)

reg support_trade_ordered adversary_treat, robust

* Column 4 (Ordered outcome, with controls)

reg support_trade_ordered adversary_treat gender age educ religion race income, robust


***************************************************************************
* Appendix D: Table 2 Effect of Military, Peace, and Democracy Treatments *
***************************************************************************

* Military Treatment

* Column 1 (Effect in full sample)

reg support_trade military_treat, robust

* Column 2 (Effect for adversaries)

reg support_trade military_treat if adversary_treat==1, robust

* Column 3 (Effect for allies)

reg support_trade military_treat if adversary_treat==0, robust

* Peace Treatment

* Column 1 (Effect in full sample)

reg support_trade peace_treat, robust

* Column 2 (Effect for adversaries)

reg support_trade peace_treat if adversary_treat==1, robust

* Column 3 (Effect for allies)

reg support_trade peace_treat if adversary_treat==0, robust

* Democracy Treatment

* Column 1 (Effect in full sample)

reg support_trade democracy_treat, robust

* Column 2 (Effect for adversaries)

reg support_trade democracy_treat if adversary_treat==1, robust

* Column 3 (Effect for allies)

reg support_trade democracy_treat if adversary_treat==0, robust


***********************************************************************************************
* Appendix D: Table 3 Three-way Interaction between Adversary, Peace, and Military Treatments *
***********************************************************************************************

gen adXpeace=adversary_treat*peace_treat
gen adXmil=adversary_treat*military_treat
gen peaceXmil=peace_treat*military_treat
gen adXpeaceXmil=adversary_treat*peace_treat*military_treat

* Column 1 (Binary outcome, no controls)
reg support_trade adXpeaceXmil adXpeace adXmil peaceXmil adversary_treat military_treat peace_treat, robust
estimates store m1

* Column 2 (Binary outcome, with controls)
reg support_trade adXpeaceXmil adXpeace adXmil peaceXmil adversary_treat military_treat peace_treat gender age educ religion race income, robust
estimates store m2

estout m1 m2, style(tex)  varlabels(_cons Constant) cells(b (star fmt(%9.3f)) se) starlevel(* 0.10 ** 0.05 *** 0.01) stats(r2 N, fmt(%9.3f %9.0g) labels(R-Squared)) legend label  collabels(none)


*************************************************************************************
* Appendix D: Table 4 Two-way Interaction between Adversary and Military Treatments *
*************************************************************************************

* Column 1 (Binary outcome, no controls)
reg support_trade adXmil adversary_treat military_treat, robust
estimates store m1

* Column 2 (Binary outcome, with controls)
reg support_trade adXmil adversary_treat military_treat gender age educ religion race income, robust
estimates store m2

estout m1 m2, style(tex)  varlabels(_cons Constant) cells(b (star fmt(%9.3f)) se) starlevel(* 0.10 ** 0.05 *** 0.01) stats(r2 N, fmt(%9.3f %9.0g) labels(R-Squared)) legend label  collabels(none)


*************************************************************************************
* Appendix D: Table 5 Two-way Interaction between Adversary and Peace Treatments *
*************************************************************************************

* Column 1 (Binary outcome, no controls)
reg support_trade adXpeace adversary_treat peace_treat, robust
estimates store m1

* Column 2 (Binary outcome, with controls)
reg support_trade adXpeace adversary_treat peace_treat gender age educ religion race income, robust
estimates store m2

estout m1 m2, style(tex)  varlabels(_cons Constant) cells(b (star fmt(%9.3f)) se) starlevel(* 0.10 ** 0.05 *** 0.01) stats(r2 N, fmt(%9.3f %9.0g) labels(R-Squared)) legend label  collabels(none)


****************************************
* Conduct Conjoint Experiment Analysis *
****************************************

* Create new variables to reformat data 

* Conjoint1
gen govt_type_cj11=""
gen govt_type_cj21=""
gen alliance_cj11=""
gen alliance_cj21=""
gen trade_mil_cj11=""
gen trade_mil_cj21=""
gen trade_war_cj11=""
gen trade_war_cj21=""
gen mil_size_cj11=""
gen mil_size_cj21=""
gen trade_us_cj11=""
gen trade_us_cj21=""

* Conjoint2
gen govt_type_cj12=""
gen govt_type_cj22=""
gen alliance_cj12=""
gen alliance_cj22=""
gen trade_mil_cj12=""
gen trade_mil_cj22=""
gen trade_war_cj12=""
gen trade_war_cj22=""
gen mil_size_cj12=""
gen mil_size_cj22=""
gen trade_us_cj12=""
gen trade_us_cj22=""

* Conjoint3
gen govt_type_cj13=""
gen govt_type_cj23=""
gen alliance_cj13=""
gen alliance_cj23=""
gen trade_mil_cj13=""
gen trade_mil_cj23=""
gen trade_war_cj13=""
gen trade_war_cj23=""
gen mil_size_cj13=""
gen mil_size_cj23=""
gen trade_us_cj13=""
gen trade_us_cj23=""

* Conjoint4
gen govt_type_cj14=""
gen govt_type_cj24=""
gen alliance_cj14=""
gen alliance_cj24=""
gen trade_mil_cj14=""
gen trade_mil_cj24=""
gen trade_war_cj14=""
gen trade_war_cj24=""
gen mil_size_cj14=""
gen mil_size_cj24=""
gen trade_us_cj14=""
gen trade_us_cj24=""

* Conjoint5
gen govt_type_cj15=""
gen govt_type_cj25=""
gen alliance_cj15=""
gen alliance_cj25=""
gen trade_mil_cj15=""
gen trade_mil_cj25=""
gen trade_war_cj15=""
gen trade_war_cj25=""
gen mil_size_cj15=""
gen mil_size_cj25=""
gen trade_us_cj15=""
gen trade_us_cj25=""

* Populate variables with attributes and randomized options 1 and 2

* Conjoint1
replace govt_type_cj11=f111 if f11=="Government type of other country:"
replace govt_type_cj11=f112 if f12=="Government type of other country:"
replace govt_type_cj11=f113 if f13=="Government type of other country:"
replace govt_type_cj11=f114 if f14=="Government type of other country:"
replace govt_type_cj11=f115 if f15=="Government type of other country:"
replace govt_type_cj11=f116 if f16=="Government type of other country:"

replace govt_type_cj21=f121 if f11=="Government type of other country:"
replace govt_type_cj21=f122 if f12=="Government type of other country:"
replace govt_type_cj21=f123 if f13=="Government type of other country:"
replace govt_type_cj21=f124 if f14=="Government type of other country:"
replace govt_type_cj21=f125 if f15=="Government type of other country:"
replace govt_type_cj21=f126 if f16=="Government type of other country:"

replace alliance_cj11=f111 if f11=="Country alliance with America:"
replace alliance_cj11=f112 if f12=="Country alliance with America:"
replace alliance_cj11=f113 if f13=="Country alliance with America:"
replace alliance_cj11=f114 if f14=="Country alliance with America:"
replace alliance_cj11=f115 if f15=="Country alliance with America:"
replace alliance_cj11=f116 if f16=="Country alliance with America:"

replace alliance_cj21=f121 if f11=="Country alliance with America:"
replace alliance_cj21=f122 if f12=="Country alliance with America:"
replace alliance_cj21=f123 if f13=="Country alliance with America:"
replace alliance_cj21=f124 if f14=="Country alliance with America:"
replace alliance_cj21=f125 if f15=="Country alliance with America:"
replace alliance_cj21=f126 if f16=="Country alliance with America:"

replace trade_mil_cj11=f111 if f11=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj11=f112 if f12=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj11=f113 if f13=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj11=f114 if f14=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj11=f115 if f15=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj11=f116 if f16=="Trade will increase the size of the military of the other country by:"

replace trade_mil_cj21=f121 if f11=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj21=f122 if f12=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj21=f123 if f13=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj21=f124 if f14=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj21=f125 if f15=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj21=f126 if f16=="Trade will increase the size of the military of the other country by:"

replace trade_war_cj11=f111 if f11=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj11=f112 if f12=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj11=f113 if f13=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj11=f114 if f14=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj11=f115 if f15=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj11=f116 if f16=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace trade_war_cj21=f121 if f11=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj21=f122 if f12=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj21=f123 if f13=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj21=f124 if f14=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj21=f125 if f15=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj21=f126 if f16=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace mil_size_cj11=f111 if f11=="Current military size of other country:"
replace mil_size_cj11=f112 if f12=="Current military size of other country:"
replace mil_size_cj11=f113 if f13=="Current military size of other country:"
replace mil_size_cj11=f114 if f14=="Current military size of other country:"
replace mil_size_cj11=f115 if f15=="Current military size of other country:"
replace mil_size_cj11=f116 if f16=="Current military size of other country:"

replace mil_size_cj21=f121 if f11=="Current military size of other country:"
replace mil_size_cj21=f122 if f12=="Current military size of other country:"
replace mil_size_cj21=f123 if f13=="Current military size of other country:"
replace mil_size_cj21=f124 if f14=="Current military size of other country:"
replace mil_size_cj21=f125 if f15=="Current military size of other country:"
replace mil_size_cj21=f126 if f16=="Current military size of other country:"

replace trade_us_cj11=f111 if f11=="Impact of trade on US economy:"
replace trade_us_cj11=f112 if f12=="Impact of trade on US economy:"
replace trade_us_cj11=f113 if f13=="Impact of trade on US economy:"
replace trade_us_cj11=f114 if f14=="Impact of trade on US economy:"
replace trade_us_cj11=f115 if f15=="Impact of trade on US economy:"
replace trade_us_cj11=f116 if f16=="Impact of trade on US economy:"

replace trade_us_cj21=f121 if f11=="Impact of trade on US economy:"
replace trade_us_cj21=f122 if f12=="Impact of trade on US economy:"
replace trade_us_cj21=f123 if f13=="Impact of trade on US economy:"
replace trade_us_cj21=f124 if f14=="Impact of trade on US economy:"
replace trade_us_cj21=f125 if f15=="Impact of trade on US economy:"
replace trade_us_cj21=f126 if f16=="Impact of trade on US economy:"

* Conjoint2
replace govt_type_cj12=f211 if f21=="Government type of other country:"
replace govt_type_cj12=f212 if f22=="Government type of other country:"
replace govt_type_cj12=f213 if f23=="Government type of other country:"
replace govt_type_cj12=f214 if f24=="Government type of other country:"
replace govt_type_cj12=f215 if f25=="Government type of other country:"
replace govt_type_cj12=f216 if f26=="Government type of other country:"

replace govt_type_cj22=f221 if f21=="Government type of other country:"
replace govt_type_cj22=f222 if f22=="Government type of other country:"
replace govt_type_cj22=f223 if f23=="Government type of other country:"
replace govt_type_cj22=f224 if f24=="Government type of other country:"
replace govt_type_cj22=f225 if f25=="Government type of other country:"
replace govt_type_cj22=f226 if f26=="Government type of other country:"

replace alliance_cj12=f211 if f21=="Country alliance with America:"
replace alliance_cj12=f212 if f22=="Country alliance with America:"
replace alliance_cj12=f213 if f23=="Country alliance with America:"
replace alliance_cj12=f214 if f24=="Country alliance with America:"
replace alliance_cj12=f215 if f25=="Country alliance with America:"
replace alliance_cj12=f216 if f26=="Country alliance with America:"

replace alliance_cj22=f221 if f21=="Country alliance with America:"
replace alliance_cj22=f222 if f22=="Country alliance with America:"
replace alliance_cj22=f223 if f23=="Country alliance with America:"
replace alliance_cj22=f224 if f24=="Country alliance with America:"
replace alliance_cj22=f225 if f25=="Country alliance with America:"
replace alliance_cj22=f226 if f26=="Country alliance with America:"

replace trade_mil_cj12=f211 if f21=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj12=f212 if f22=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj12=f213 if f23=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj12=f214 if f24=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj12=f215 if f25=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj12=f216 if f26=="Trade will increase the size of the military of the other country by:"

replace trade_mil_cj22=f221 if f21=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj22=f222 if f22=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj22=f223 if f23=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj22=f224 if f24=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj22=f225 if f25=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj22=f226 if f26=="Trade will increase the size of the military of the other country by:"

replace trade_war_cj12=f211 if f21=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj12=f212 if f22=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj12=f213 if f23=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj12=f214 if f24=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj12=f215 if f25=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj12=f216 if f26=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace trade_war_cj22=f221 if f21=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj22=f222 if f22=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj22=f223 if f23=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj22=f224 if f24=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj22=f225 if f25=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj22=f226 if f26=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace mil_size_cj12=f211 if f21=="Current military size of other country:"
replace mil_size_cj12=f212 if f22=="Current military size of other country:"
replace mil_size_cj12=f213 if f23=="Current military size of other country:"
replace mil_size_cj12=f214 if f24=="Current military size of other country:"
replace mil_size_cj12=f215 if f25=="Current military size of other country:"
replace mil_size_cj12=f216 if f26=="Current military size of other country:"

replace mil_size_cj22=f221 if f21=="Current military size of other country:"
replace mil_size_cj22=f222 if f22=="Current military size of other country:"
replace mil_size_cj22=f223 if f23=="Current military size of other country:"
replace mil_size_cj22=f224 if f24=="Current military size of other country:"
replace mil_size_cj22=f225 if f25=="Current military size of other country:"
replace mil_size_cj22=f226 if f26=="Current military size of other country:"

replace trade_us_cj12=f211 if f21=="Impact of trade on US economy:"
replace trade_us_cj12=f212 if f22=="Impact of trade on US economy:"
replace trade_us_cj12=f213 if f23=="Impact of trade on US economy:"
replace trade_us_cj12=f214 if f24=="Impact of trade on US economy:"
replace trade_us_cj12=f215 if f25=="Impact of trade on US economy:"
replace trade_us_cj12=f216 if f26=="Impact of trade on US economy:"

replace trade_us_cj22=f221 if f21=="Impact of trade on US economy:"
replace trade_us_cj22=f222 if f22=="Impact of trade on US economy:"
replace trade_us_cj22=f223 if f23=="Impact of trade on US economy:"
replace trade_us_cj22=f224 if f24=="Impact of trade on US economy:"
replace trade_us_cj22=f225 if f25=="Impact of trade on US economy:"
replace trade_us_cj22=f226 if f26=="Impact of trade on US economy:"

* Conjoint3
replace govt_type_cj13=f311 if f31=="Government type of other country:"
replace govt_type_cj13=f312 if f32=="Government type of other country:"
replace govt_type_cj13=f313 if f33=="Government type of other country:"
replace govt_type_cj13=f314 if f34=="Government type of other country:"
replace govt_type_cj13=f315 if f35=="Government type of other country:"
replace govt_type_cj13=f316 if f36=="Government type of other country:"

replace govt_type_cj23=f321 if f31=="Government type of other country:"
replace govt_type_cj23=f322 if f32=="Government type of other country:"
replace govt_type_cj23=f323 if f33=="Government type of other country:"
replace govt_type_cj23=f324 if f34=="Government type of other country:"
replace govt_type_cj23=f325 if f35=="Government type of other country:"
replace govt_type_cj23=f326 if f36=="Government type of other country:"

replace alliance_cj13=f311 if f31=="Country alliance with America:"
replace alliance_cj13=f312 if f32=="Country alliance with America:"
replace alliance_cj13=f313 if f33=="Country alliance with America:"
replace alliance_cj13=f314 if f34=="Country alliance with America:"
replace alliance_cj13=f315 if f35=="Country alliance with America:"
replace alliance_cj13=f316 if f36=="Country alliance with America:"

replace alliance_cj23=f321 if f31=="Country alliance with America:"
replace alliance_cj23=f322 if f32=="Country alliance with America:"
replace alliance_cj23=f323 if f33=="Country alliance with America:"
replace alliance_cj23=f324 if f34=="Country alliance with America:"
replace alliance_cj23=f325 if f35=="Country alliance with America:"
replace alliance_cj23=f326 if f36=="Country alliance with America:"

replace trade_mil_cj13=f311 if f31=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj13=f312 if f32=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj13=f313 if f33=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj13=f314 if f34=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj13=f315 if f35=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj13=f316 if f36=="Trade will increase the size of the military of the other country by:"

replace trade_mil_cj23=f321 if f31=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj23=f322 if f32=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj23=f323 if f33=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj23=f324 if f34=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj23=f325 if f35=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj23=f326 if f36=="Trade will increase the size of the military of the other country by:"

replace trade_war_cj13=f311 if f31=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj13=f312 if f32=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj13=f313 if f33=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj13=f314 if f34=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj13=f315 if f35=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj13=f316 if f36=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace trade_war_cj23=f321 if f31=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj23=f322 if f32=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj23=f323 if f33=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj23=f324 if f34=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj23=f325 if f35=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj23=f326 if f36=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace mil_size_cj13=f311 if f31=="Current military size of other country:"
replace mil_size_cj13=f312 if f32=="Current military size of other country:"
replace mil_size_cj13=f313 if f33=="Current military size of other country:"
replace mil_size_cj13=f314 if f34=="Current military size of other country:"
replace mil_size_cj13=f315 if f35=="Current military size of other country:"
replace mil_size_cj13=f316 if f36=="Current military size of other country:"

replace mil_size_cj23=f321 if f31=="Current military size of other country:"
replace mil_size_cj23=f322 if f32=="Current military size of other country:"
replace mil_size_cj23=f323 if f33=="Current military size of other country:"
replace mil_size_cj23=f324 if f34=="Current military size of other country:"
replace mil_size_cj23=f325 if f35=="Current military size of other country:"
replace mil_size_cj23=f326 if f36=="Current military size of other country:"

replace trade_us_cj13=f311 if f31=="Impact of trade on US economy:"
replace trade_us_cj13=f312 if f32=="Impact of trade on US economy:"
replace trade_us_cj13=f313 if f33=="Impact of trade on US economy:"
replace trade_us_cj13=f314 if f34=="Impact of trade on US economy:"
replace trade_us_cj13=f315 if f35=="Impact of trade on US economy:"
replace trade_us_cj13=f316 if f36=="Impact of trade on US economy:"

replace trade_us_cj23=f321 if f31=="Impact of trade on US economy:"
replace trade_us_cj23=f322 if f32=="Impact of trade on US economy:"
replace trade_us_cj23=f323 if f33=="Impact of trade on US economy:"
replace trade_us_cj23=f324 if f34=="Impact of trade on US economy:"
replace trade_us_cj23=f325 if f35=="Impact of trade on US economy:"
replace trade_us_cj23=f326 if f36=="Impact of trade on US economy:"

* Conjoint4
replace govt_type_cj14=f411 if f41=="Government type of other country:"
replace govt_type_cj14=f412 if f42=="Government type of other country:"
replace govt_type_cj14=f413 if f43=="Government type of other country:"
replace govt_type_cj14=f414 if f44=="Government type of other country:"
replace govt_type_cj14=f415 if f45=="Government type of other country:"
replace govt_type_cj14=f416 if f46=="Government type of other country:"

replace govt_type_cj24=f421 if f41=="Government type of other country:"
replace govt_type_cj24=f422 if f42=="Government type of other country:"
replace govt_type_cj24=f423 if f43=="Government type of other country:"
replace govt_type_cj24=f424 if f44=="Government type of other country:" 
replace govt_type_cj24=f425 if f45=="Government type of other country:"
replace govt_type_cj24=f426 if f46=="Government type of other country:"

replace alliance_cj14=f411 if f41=="Country alliance with America:"
replace alliance_cj14=f412 if f42=="Country alliance with America:"
replace alliance_cj14=f413 if f43=="Country alliance with America:"
replace alliance_cj14=f414 if f44=="Country alliance with America:"
replace alliance_cj14=f415 if f45=="Country alliance with America:"
replace alliance_cj14=f416 if f46=="Country alliance with America:"

replace alliance_cj24=f421 if f41=="Country alliance with America:"
replace alliance_cj24=f422 if f42=="Country alliance with America:"
replace alliance_cj24=f423 if f43=="Country alliance with America:"
replace alliance_cj24=f424 if f44=="Country alliance with America:"
replace alliance_cj24=f425 if f45=="Country alliance with America:"
replace alliance_cj24=f426 if f46=="Country alliance with America:"

replace trade_mil_cj14=f411 if f41=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj14=f412 if f42=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj14=f413 if f43=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj14=f414 if f44=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj14=f415 if f45=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj14=f416 if f46=="Trade will increase the size of the military of the other country by:"

replace trade_mil_cj24=f421 if f41=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj24=f422 if f42=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj24=f423 if f43=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj24=f424 if f44=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj24=f425 if f45=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj24=f426 if f46=="Trade will increase the size of the military of the other country by:"

replace trade_war_cj14=f411 if f41=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj14=f412 if f42=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj14=f413 if f43=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj14=f414 if f44=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj14=f415 if f45=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj14=f416 if f46=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace trade_war_cj24=f421 if f41=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj24=f422 if f42=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj24=f423 if f43=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj24=f424 if f44=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj24=f425 if f45=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj24=f426 if f46=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace mil_size_cj14=f411 if f41=="Current military size of other country:"
replace mil_size_cj14=f412 if f42=="Current military size of other country:"
replace mil_size_cj14=f413 if f43=="Current military size of other country:"
replace mil_size_cj14=f414 if f44=="Current military size of other country:"
replace mil_size_cj14=f415 if f45=="Current military size of other country:"
replace mil_size_cj14=f416 if f46=="Current military size of other country:"

replace mil_size_cj24=f421 if f41=="Current military size of other country:"
replace mil_size_cj24=f422 if f42=="Current military size of other country:"
replace mil_size_cj24=f423 if f43=="Current military size of other country:"
replace mil_size_cj24=f424 if f44=="Current military size of other country:"
replace mil_size_cj24=f425 if f45=="Current military size of other country:"
replace mil_size_cj24=f426 if f46=="Current military size of other country:"

replace trade_us_cj14=f411 if f41=="Impact of trade on US economy:"
replace trade_us_cj14=f412 if f42=="Impact of trade on US economy:"
replace trade_us_cj14=f413 if f43=="Impact of trade on US economy:"
replace trade_us_cj14=f414 if f44=="Impact of trade on US economy:"
replace trade_us_cj14=f415 if f45=="Impact of trade on US economy:"
replace trade_us_cj14=f416 if f46=="Impact of trade on US economy:"

replace trade_us_cj24=f421 if f41=="Impact of trade on US economy:"
replace trade_us_cj24=f422 if f42=="Impact of trade on US economy:"
replace trade_us_cj24=f423 if f43=="Impact of trade on US economy:"
replace trade_us_cj24=f424 if f44=="Impact of trade on US economy:"
replace trade_us_cj24=f425 if f45=="Impact of trade on US economy:"
replace trade_us_cj24=f426 if f46=="Impact of trade on US economy:"

* Conjoint5
replace govt_type_cj15=f511 if f51=="Government type of other country:"
replace govt_type_cj15=f512 if f52=="Government type of other country:"
replace govt_type_cj15=f513 if f53=="Government type of other country:"
replace govt_type_cj15=f514 if f54=="Government type of other country:"
replace govt_type_cj15=f515 if f55=="Government type of other country:"
replace govt_type_cj15=f516 if f56=="Government type of other country:"

replace govt_type_cj25=f521 if f51=="Government type of other country:"
replace govt_type_cj25=f522 if f52=="Government type of other country:"
replace govt_type_cj25=f523 if f53=="Government type of other country:"
replace govt_type_cj25=f524 if f54=="Government type of other country:"
replace govt_type_cj25=f525 if f55=="Government type of other country:"
replace govt_type_cj25=f526 if f56=="Government type of other country:"

replace alliance_cj15=f511 if f51=="Country alliance with America:"
replace alliance_cj15=f512 if f52=="Country alliance with America:"
replace alliance_cj15=f513 if f53=="Country alliance with America:"
replace alliance_cj15=f514 if f54=="Country alliance with America:"
replace alliance_cj15=f515 if f55=="Country alliance with America:"
replace alliance_cj15=f516 if f56=="Country alliance with America:"

replace alliance_cj25=f521 if f51=="Country alliance with America:"
replace alliance_cj25=f522 if f52=="Country alliance with America:"
replace alliance_cj25=f523 if f53=="Country alliance with America:"
replace alliance_cj25=f524 if f54=="Country alliance with America:"
replace alliance_cj25=f525 if f55=="Country alliance with America:"
replace alliance_cj25=f526 if f56=="Country alliance with America:"

replace trade_mil_cj15=f511 if f51=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj15=f512 if f52=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj15=f513 if f53=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj15=f514 if f54=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj15=f515 if f55=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj15=f516 if f56=="Trade will increase the size of the military of the other country by:"

replace trade_mil_cj25=f521 if f51=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj25=f522 if f52=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj25=f523 if f53=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj25=f524 if f54=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj25=f525 if f55=="Trade will increase the size of the military of the other country by:"
replace trade_mil_cj25=f526 if f56=="Trade will increase the size of the military of the other country by:"

replace trade_war_cj15=f511 if f51=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj15=f512 if f52=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj15=f513 if f53=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj15=f514 if f54=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj15=f515 if f55=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj15=f516 if f56=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace trade_war_cj25=f521 if f51=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj25=f522 if f52=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj25=f523 if f53=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj25=f524 if f54=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj25=f525 if f55=="Trade will change the likelihood the other country engages in conflict with the US by:"
replace trade_war_cj25=f526 if f56=="Trade will change the likelihood the other country engages in conflict with the US by:"

replace mil_size_cj15=f511 if f51=="Current military size of other country:"
replace mil_size_cj15=f512 if f52=="Current military size of other country:"
replace mil_size_cj15=f513 if f53=="Current military size of other country:"
replace mil_size_cj15=f514 if f54=="Current military size of other country:"
replace mil_size_cj15=f515 if f55=="Current military size of other country:"
replace mil_size_cj15=f516 if f56=="Current military size of other country:"

replace mil_size_cj25=f521 if f51=="Current military size of other country:"
replace mil_size_cj25=f522 if f52=="Current military size of other country:"
replace mil_size_cj25=f523 if f53=="Current military size of other country:"
replace mil_size_cj25=f524 if f54=="Current military size of other country:"
replace mil_size_cj25=f525 if f55=="Current military size of other country:"
replace mil_size_cj25=f526 if f56=="Current military size of other country:"

replace trade_us_cj15=f511 if f51=="Impact of trade on US economy:"
replace trade_us_cj15=f512 if f52=="Impact of trade on US economy:"
replace trade_us_cj15=f513 if f53=="Impact of trade on US economy:"
replace trade_us_cj15=f514 if f54=="Impact of trade on US economy:"
replace trade_us_cj15=f515 if f55=="Impact of trade on US economy:"
replace trade_us_cj15=f516 if f56=="Impact of trade on US economy:"

replace trade_us_cj25=f521 if f51=="Impact of trade on US economy:"
replace trade_us_cj25=f522 if f52=="Impact of trade on US economy:"
replace trade_us_cj25=f523 if f53=="Impact of trade on US economy:"
replace trade_us_cj25=f524 if f54=="Impact of trade on US economy:"
replace trade_us_cj25=f525 if f55=="Impact of trade on US economy:"
replace trade_us_cj25=f526 if f56=="Impact of trade on US economy:"

* Create variables to capture binary choice
gen q5_cj11=.
gen q5_cj21=.
replace q5_cj11=1 if q71==1
replace q5_cj21=0 if q71==1
replace q5_cj11=0 if q71==2
replace q5_cj21=1 if q71==2

gen q5_cj12=.
gen q5_cj22=.
replace q5_cj12=1 if q72==1
replace q5_cj22=0 if q72==1
replace q5_cj12=0 if q72==2
replace q5_cj22=1 if q72==2

gen q5_cj13=.
gen q5_cj23=.
replace q5_cj13=1 if q73==1
replace q5_cj23=0 if q73==1
replace q5_cj13=0 if q73==2
replace q5_cj23=1 if q73==2

gen q5_cj14=.
gen q5_cj24=.
replace q5_cj14=1 if q74==1
replace q5_cj24=0 if q74==1
replace q5_cj14=0 if q74==2
replace q5_cj24=1 if q74==2

gen q5_cj15=.
gen q5_cj25=.
replace q5_cj15=1 if q75==1
replace q5_cj25=0 if q75==1
replace q5_cj15=0 if q75==2
replace q5_cj25=1 if q75==2

* Reshape data to long form
reshape long govt_type_cj alliance_cj trade_mil_cj trade_war_cj mil_size_cj trade_us_cj q5_cj, i(mturkcode) j(cj_option)

rename q5_cj choice_cj

tostring cj_option, gen(str_cj_option)
gen cj_round=substr(str_cj_option,2,1)
gen cj_round_option=substr(str_cj_option,1,1)
destring cj_round, replace
destring cj_round_option, replace
order mturkcode cj_option cj_round cj_round_option choice_cj
sort mturkcode cj_round cj_round_option 
 
gen govt_type_cj_num=""  
replace govt_type_cj_num="0" if govt_type_cj=="Not a democracy"
replace govt_type_cj_num="1" if govt_type_cj=="Democracy"
destring govt_type_cj_num, replace

gen alliance_cj_num=""  
replace alliance_cj_num="0" if alliance_cj=="Ally of America"
replace alliance_cj_num="1" if alliance_cj=="Adversary of America"
destring alliance_cj_num, replace

gen trade_mil_cj_num=""  
replace trade_mil_cj_num="0" if trade_mil_cj=="No change in size"
replace trade_mil_cj_num="1" if trade_mil_cj=="A little"
replace trade_mil_cj_num="2" if trade_mil_cj=="A lot"
destring trade_mil_cj_num, replace

gen trade_war_cj_num=""  
replace trade_war_cj_num="0" if trade_war_cj=="Likelihood stays the same"
replace trade_war_cj_num="1" if trade_war_cj=="Likelihood decreases a little"
replace trade_war_cj_num="2" if trade_war_cj=="Likelihood decreases a lot"
destring trade_war_cj_num, replace

gen mil_size_cj_num=""  
replace mil_size_cj_num="0" if mil_size_cj=="A little smaller than the American military"
replace mil_size_cj_num="1" if mil_size_cj=="Much smaller than the American military"
destring mil_size_cj_num, replace

gen trade_us_cj_num=""  
replace trade_us_cj_num="0" if trade_us_cj=="Helps a little"
replace trade_us_cj_num="1" if trade_us_cj=="Neither helps nor hurts"
replace trade_us_cj_num="2" if trade_us_cj=="Hurts a little"
destring trade_us_cj_num, replace

* Outcome variable containing rating for each option
gen conjoint_rating=.
replace conjoint_rating=q81_1 if cj_round==1 & cj_round_option==1
replace conjoint_rating=q81_2 if cj_round==1 & cj_round_option==2
replace conjoint_rating=q82_1 if cj_round==2 & cj_round_option==1
replace conjoint_rating=q82_2 if cj_round==2 & cj_round_option==2
replace conjoint_rating=q83_1 if cj_round==3 & cj_round_option==1
replace conjoint_rating=q83_2 if cj_round==3 & cj_round_option==2
replace conjoint_rating=q84_1 if cj_round==4 & cj_round_option==1
replace conjoint_rating=q84_2 if cj_round==4 & cj_round_option==2
replace conjoint_rating=q85_1 if cj_round==5 & cj_round_option==1
replace conjoint_rating=q85_2 if cj_round==5 & cj_round_option==2

sum choice_cj
sum govt_type_cj_num
tab govt_type_cj
sum alliance_cj_num
sum trade_mil_cj_num
sum trade_war_cj_num
sum mil_size_cj_num
sum trade_us_cj_num

*******************
* Main Manuscript *
*******************

************
* Figure 4 *
************

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num, vce(cluster mturkcode)

estimate store baseline
local n_baseline = e(N)

coefplot baseline, mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "A little smaller than U.S. military" 1.mil_size_cj_num = "Much smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Influence of Trade on Conflict:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Effect of Trade Partner Attributes on Support for Trade}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		note("Note: n = 12,080 trade partners.", size(3)) ///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/Figure4.pdf", replace
	
**************************
* Supplementary Appendix *
**************************

***************************************************
* Appendix E: Table 7 Conjoint Experiment Results *
***************************************************

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num, vce(cluster mturkcode)
	
****************************************
* Appendix F: Figure 6 Doves and Hawks *
****************************************
	
reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if dove>=3.3, vce(cluster mturkcode)
estimate store doves

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if dove<3.3, vce(cluster mturkcode)
estimate store hawks

coefplot (doves, label(Doves)) (hawks, label(Hawks)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Doves and Hawks}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	
		
graph export "Output/SuppAppendixFigure6.pdf", replace

***************************************************
* Appendix F: Figure 7 Liberals and Conservatives *
***************************************************

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if liberal>=3.4, vce(cluster mturkcode)
estimate store liberal

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if liberal<3.4, vce(cluster mturkcode)
estimate store conservative

coefplot (liberal, label(Liberals)) (conservative, label(Conservatives)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Liberals and Conservatives}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure7.pdf", replace	
	
**************************************************
* Appendix F: Figure 8 Democrats and Republicans *
**************************************************	
	
reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if democrat>=3.37, vce(cluster mturkcode)
estimate store democrats

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if democrat<3.37, vce(cluster mturkcode)
estimate store republicans

coefplot (democrats, label(Democrats)) (republicans, label(Republicans)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Democrats and Republicans}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure8.pdf", replace	
		
***************************************************
* Appendix F: Figure 9 Low and High Ethnocentrism *
***************************************************	

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if ethnocentrism>=-.26, vce(cluster mturkcode)
estimate store low_ethnocentrism

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if ethnocentrism<-.26, vce(cluster mturkcode)
estimate store high_ethnocentrism

coefplot (low_ethnocentrism, label(Low Ethnocentrism)) (high_ethnocentrism, label(High Ethnocentrism)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Low and High Ethnocentrism}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure9.pdf", replace	
	
*****************************************************************
* Appendix F: Figure 10 Non-Isolationalists and Isolationalists *
*****************************************************************	

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if isolation>=2.8, vce(cluster mturkcode)
estimate store nonisolationist

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if isolation<2.8, vce(cluster mturkcode)
estimate store isolationist

coefplot (nonisolationist, label(Non-Isolationists)) (isolationist, label(Isolationists)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Non-Isolationists and Isolationists}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure10.pdf", replace	
	
*********************************************************************
* Appendix F: Figure 11 Non-Internationalists and Internationalists *
*********************************************************************
	
reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if internationalism>=2.38, vce(cluster mturkcode)
estimate store noninternational

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if internationalism<2.38, vce(cluster mturkcode)
estimate store international

coefplot (noninternational, label(Non-Internationalists)) (international, label(Internationalists)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Non-Internationalists and Internationalists}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure11.pdf", replace	
	
*******************************************************
* Appendix F: Figure 12 Low and High Foreign Interest *
*******************************************************	
	
reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if foreign_interest>=2.18, vce(cluster mturkcode)
estimate store notinterested_foreign

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if foreign_interest<2.18, vce(cluster mturkcode)
estimate store interested_foreign

coefplot (notinterested_foreign, label(Low Foreign Interest)) (interested_foreign, label(High Foreign Interest)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Low and High Foreign Interest}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure12.pdf", replace	
	
**************************************************
* Appendix F: Figure 13 Low and High Nationalism *
**************************************************	

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if nationalism>=9.88, vce(cluster mturkcode)
estimate store low_nationalism

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if nationalism<9.88, vce(cluster mturkcode)
estimate store high_nationalism

coefplot (low_nationalism, label(Low Nationalism)) (high_nationalism, label(High Nationalism)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by Low and High Nationalism}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	

graph export "Output/SuppAppendixFigure13.pdf", replace
	
*********************************************
* Appendix F: Figure 14 Low and High Income *
*********************************************	

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if income>=4.748, vce(cluster mturkcode)
estimate store high_inc

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if income<4.748, vce(cluster mturkcode)
estimate store low_inc

coefplot (high_inc, label(High Income)) (low_inc, label(Low Income)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by High- and Low-Income}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	
		
graph export "Output/SuppAppendixFigure14.pdf", replace
	

*****************************************************
* Appendix F: Figure 15 Low and High Job Insecurity *
*****************************************************		
		
*main analysis_ by high and low job security
reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if secure_job>=2.279, vce(cluster mturkcode)
estimate store high_insecurity

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if secure_job<2.279, vce(cluster mturkcode)
estimate store low_insecurity

coefplot (high_insecurity, label(High Job Insecurity)) (low_insecurity, label(Low Job Insecurity)), mcolor(black) ciopts(lcolor(black) lwidth(thin)) xlabel(-.3(.1).3) drop(_cons) omitted base xline(0) /// 
		coeflabels(0.govt_type_cj_num = "Not a democracy" 1.govt_type_cj_num = "Democracy" ///
		0.alliance_cj_num = "Ally" 1.alliance_cj_num = "Adversary" ///
		0.trade_mil_cj_num = "No change in size" 1.trade_mil_cj_num = "A little" 2.trade_mil_cj_num = "A lot" ///
		0.trade_war_cj_num = "Likelihood stays the same" 1.trade_war_cj_num = "Likelihood decreases a little" 2.trade_war_cj_num = "Likelihood decreases a lot" ///
		0.mil_size_cj_num = "Much smaller than U.S. military" 1.mil_size_cj_num = "A little smaller than U.S. military" ///
		0.trade_us_cj_num = "Helps a little" 1.trade_us_cj_num = "Neither helps nor hurts" 2.trade_us_cj_num = "Hurts a little") ///
		headings(0.govt_type_cj_num = "{bf:Government Type:}" 0.alliance_cj_num = "{bf:Alliance Type:}" 0.trade_mil_cj_num = "{bf:Trade Increases Military By:}" 0.trade_war_cj_num = "{bf:Trade Increases Conflict By:}" 0.mil_size_cj_num = "{bf:Military Size of Other Country:}" 0.trade_us_cj_num = "{bf:Impact on U.S. Economy}") ///
		title("{bf:Treatment Effects, by High- and Low-Job Insecurity}", size(5) span )	///
	    subtitle(" " " " " ", size(3))	///
		ylabel(, labsize(medlarge)) xtitle("Change in Pr(Trade Agreement Selected)") ytitle("") xsize(5) ysize(7) scale(.6) grid(none) ///
		scheme(s2mono) graphregion(fcolor(white))	
		
graph export "Output/SuppAppendixFigure15.pdf", replace


***************************************
* Appendix F: Table 8 Doves and Hawks *
***************************************	

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if dove>=3.3, vce(cluster mturkcode)

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if dove<3.3, vce(cluster mturkcode)


**************************************************
* Appendix F: Table 9 Liberals and Conservatives *
**************************************************

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if liberal>=3.4, vce(cluster mturkcode)

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if liberal<3.4, vce(cluster mturkcode)


**************************************************
* Appendix F: Table 10 Democrats and Republicans *
**************************************************

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if democrat>=3.37, vce(cluster mturkcode)

reg choice_cj i.govt_type_cj_num i.alliance_cj_num i.trade_mil_cj_num i.trade_war_cj_num i.mil_size_cj_num i.trade_us_cj_num if democrat<3.37, vce(cluster mturkcode)


